package grailsforum

class ThreadsController {

    def view(){

        def t = Thread.get(params.id)

        if(t){
            [thread: t]
        }
        else{
            redirect(controller: 'courses', action: 'index')
        }
    }

    def add(){

    }
}
